package com.itheima.web.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class HelloController {

    @GetMapping("/hello")
    public String home(String phone){
        log.info("处理前台请求，接收到的参数 phone = {}",phone);
        return "hello SpringBoot!";
    }
}